#ifndef SYNC_H
#define SYNC_H

#include <QDialog>
#include <QProcess>
#include <QString>
#include <QStringList>
#include <QMessageBox>
#include <QDir>
#include <QFileInfo>
#include <QDate>
#include <tstruct.h>

namespace Ui {
class sync;
}

class sync : public QDialog
{
    Q_OBJECT

public:
    explicit sync(QHash<QString, NoteT> *hashNote,QWidget *parent = nullptr);
    ~sync();
    //设置主题
    QColor backGroundColor;
    QColor fontColor;
    void setcolor();


    //git配置
    QString gitRepositoryPath = "notes";
    QString filesToAdd = ".";
    QString commitMessage = "新文件";
    QString program = "git";

    //使用hash结构体
    QHash<QString, NoteT> *nt;

private slots:
    void on_pushButton_3_clicked();
    void on_pushButton_clicked();
    void on_pushButton_2_clicked();


signals:
    void sigClose();
    void sigHashInit();

private:
    Ui::sync *ui;

};

#endif // SYNC_H
